package com.jiusit.dao;

public class BankPageDao {
	//每页显示记录数
		private int PageSize = 10; //每页显示记录数
		private int StartRow = 0; //开始显示记录的编号
		private int PageNo=0;//需要显示的页数
		private int CounterStart=0;//每页页码的初始值
		private int CounterEnd=0;//显示页码的最大值
		private int RecordCount=0;//总记录数;
		private int MaxPage=0;//总页数
		private int PrevStart=0;//前一页
		private int NextPage=0;//下一页
		private int LastRec=0;
		private int LastStartRecord=0;//最后一页开始显示记录的编号
		
		public BankPageDao(){
			
		}
		
		public BankPageDao(int pageSize, int startRow, int pageNo, int counterStart,
				int counterEnd, int recordCount, int maxPage, int prevStart,
				int nextPage, int lastRec, int lastStartRecord) {
			super();
			PageSize = pageSize;
			StartRow = startRow;
			PageNo = pageNo;
			CounterStart = counterStart;
			CounterEnd = counterEnd;
			RecordCount = recordCount;
			MaxPage = maxPage;
			PrevStart = prevStart;
			NextPage = nextPage;
			LastRec = lastRec;
			LastStartRecord = lastStartRecord;
		}
		
		public int getPageSize() {
			return PageSize;
		}
		public void setPageSize(int pageSize) {
			PageSize = pageSize;
		}
		public int getStartRow() {
			return StartRow;
		}
		public void setStartRow(int startRow) {
			StartRow = startRow;
		}
		public int getPageNo() {
			return PageNo;
		}
		public void setPageNo(int pageNo) {
			PageNo = pageNo;
		}
		public int getCounterStart() {
			return CounterStart;
		}
		public void setCounterStart(int counterStart) {
			CounterStart = counterStart;
		}
		public int getCounterEnd() {
			return CounterEnd;
		}
		public void setCounterEnd(int counterEnd) {
			CounterEnd = counterEnd;
		}
		public int getRecordCount() {
			return RecordCount;
		}
		public void setRecordCount(int recordCount) {
			RecordCount = recordCount;
		}
		public int getMaxPage() {
			return MaxPage;
		}
		public void setMaxPage(int maxPage) {
			MaxPage = maxPage;
		}
		public int getPrevStart() {
			return PrevStart;
		}
		public void setPrevStart(int prevStart) {
			PrevStart = prevStart;
		}
		public int getNextPage() {
			return NextPage;
		}
		public void setNextPage(int nextPage) {
			NextPage = nextPage;
		}
		public int getLastRec() {
			return LastRec;
		}
		public void setLastRec(int lastRec) {
			LastRec = lastRec;
		}
		public int getLastStartRecord() {
			return LastStartRecord;
		}
		public void setLastStartRecord(int lastStartRecord) {
			LastStartRecord = lastStartRecord;
		}
		
		@Override
		public String toString() {
			return "bankPage [PageSize=" + PageSize + ", StartRow=" + StartRow
					+ ", PageNo=" + PageNo + ", CounterStart=" + CounterStart
					+ ", CounterEnd=" + CounterEnd + ", RecordCount=" + RecordCount
					+ ", MaxPage=" + MaxPage + ", PrevStart=" + PrevStart
					+ ", NextPage=" + NextPage + ", LastRec=" + LastRec
					+ ", LastStartRecord=" + LastStartRecord + "]";
		}

		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result + CounterEnd;
			result = prime * result + CounterStart;
			result = prime * result + LastRec;
			result = prime * result + LastStartRecord;
			result = prime * result + MaxPage;
			result = prime * result + NextPage;
			result = prime * result + PageNo;
			result = prime * result + PageSize;
			result = prime * result + PrevStart;
			result = prime * result + RecordCount;
			result = prime * result + StartRow;
			return result;
		}

		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			BankPageDao other = (BankPageDao) obj;
			if (CounterEnd != other.CounterEnd)
				return false;
			if (CounterStart != other.CounterStart)
				return false;
			if (LastRec != other.LastRec)
				return false;
			if (LastStartRecord != other.LastStartRecord)
				return false;
			if (MaxPage != other.MaxPage)
				return false;
			if (NextPage != other.NextPage)
				return false;
			if (PageNo != other.PageNo)
				return false;
			if (PageSize != other.PageSize)
				return false;
			if (PrevStart != other.PrevStart)
				return false;
			if (RecordCount != other.RecordCount)
				return false;
			if (StartRow != other.StartRow)
				return false;
			return true;
		}
}
